import request from '@/utils/request'

export function login(params) {
	  return request({
	    url: '/system/login/login',
	    method: 'post',
	    params
	  })
}

export function getInfo(token) {
  return request({
    url: '/system/login/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/system/login/logout',
    method: 'post'
  })
}

//获取按钮
export function getButtons(component) {
  return request({
    url: '/system/login/getButtons',
    method: 'get',
    params: { component }
  })
}

